<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js字符串和数组对象</title>
</head>
<body>
	
</body>

<script>

	file='index.inc.class.php';
	alert(file.slice(6,9)); 

</script>
</html>